<?php

//防钓鱼时间戳
$anti_phishing_key = "";

//客户端的IP地址
$exter_invoke_ip = "";
$show_url = $_POST['WIDshow_url'];
//构造要请求的参数数组，无需改动
$parameter = array(
    "service" => "create_direct_pay_by_user",
    "partner" => trim($alipay['alipay_partnerid']),
    "payment_type" => 1,
    "notify_url" => $notify_url,
    "return_url" => U("Member/order"),
    "seller_email" => $alipay['alipay_account'],
    "out_trade_no" => $order_ids,
    "subject" => $pay_title,
    "total_fee" => $order_money, //$order_money,
    "body" => "",
    "ordernum" => time(),
    "_input_charset" => "UTF-8"
);
//建立请求
$alipaySubmit = new AlipaySubmit($alipay_config);
$html_text = $alipaySubmit->buildRequestForm($parameter, "get", "");

echo $html_text;
?>
